package com.neo.office.server.controller.system;

import com.neo.office.server.domain.entity.User;
import com.neo.office.server.service.UserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 在线聊天
 */
@RestController
@RequestMapping("/chat")
public class ChatController {

    @Autowired
    private UserService userService;

    @ApiOperation(value = "获取所有用户")
    @GetMapping("/user")
    public List<User> getAllUser(String keywords){
        return userService.getAllUser(keywords);
    }
}
